﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using myyd.admin.Models;

namespace myyd.admin.Controllers
{
    public class LoginController : Controller
    {
        private DataContext db;

        public LoginController(DataContext db)
        {
            this.db = db;
        }

        public IActionResult Index()
        {
            var a = db.Responses.ToList();
            return View(a);
        }
    }
}